public class Stock implements Comparable {
	private String ticker;
	private double total;
	private double price;
	private int volume;
	
	public void setTicker(String ticker) {
		this.ticker = ticker;
	}
	public String getTicker() {
		return ticker;
	}

	public void setTotal(double total) {
		this.total = total;
	}
	public double getTotal() {
		return total;
	}

	public void setPrice(double price) {
		this.price = price;
	}	
	public double getPrice() {
		return price;
	}

	public void setVolume(int volume) {
		this.volume = volume;
	}
	public int getVolume() {
		return volume;
	}
	
	public int compareTo(Object object) {
		return (int)(( ((Stock)object).getTotal() - this.total) * 100000); 
	}
}
